﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.LAPTOP>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Chỉnh sửa laptop</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <p>
            CPU:
        </p>
        <p>
            <%=Html.DropDownList("idCpu", (SelectList)ViewData["CPU"])%>
        </p>
        <p>
            RAM:
        </p>
        <p>
            <%=Html.DropDownList("idRam", (SelectList)ViewData["RAM"])%>
        </p>
        <p>
            VGA:
        </p>
        <p>
            <%=Html.DropDownList("idVga", (SelectList)ViewData["VGA"])%>
        </p>
        <p>
            HDD:
        </p>
        <p>
            <%=Html.DropDownList("idHdd", (SelectList)ViewData["HDD"])%>
        </p>
        <p>
            MainBoard:
        </p>
        <p>
            <%=Html.DropDownList("idMainBoard", (SelectList)ViewData["MAINBOARD"])%>
        </p>
        <p>
            HDH:
        </p>
        <p>
            <%=Html.DropDownList("idHdh", (SelectList)ViewData["HDH"])%>
        </p>
        <p>
            SoundCard:
        </p>
        <p>
            <%=Html.DropDownList("idSoundCard", (SelectList)ViewData["SOUND_CARD"])%>
        </p>
        <p>
            CD_DVD:
        </p>
        <p>
            <%=Html.DropDownList("idCdDvd", (SelectList)ViewData["CD_DVD"])%>
        </p>
        <p>
            Kích thước màn hình:
        </p>
        <p>
            <%=Html.TextBox("ScreenSize", Model.ScreenSize)%>
            <%= Html.ValidationMessage("ScreenSize", "*")%>
        </p>
        <p>
            Pin:
        </p>
        <p>
            <%=Html.DropDownList("idPin", (SelectList)ViewData["PIN"])%>
        </p>
        <p>
            Khối lượng máy:
        </p>
        <p>
            <%=Html.TextBox("KhoiLuong", Model.KhoiLuong)%>
            <%= Html.ValidationMessage("KhoiLuong", "*")%>
        </p>        
        <p>
            <input type="submit" value="Create" />
        </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <title>Laptop</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

